package com.xiao.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Topic {
    private int id;
    private Long topicid;
    private String topicContent;
    private String optionContent;
    private int topicCont;
    public Topic(Long topicid, String topicContent, String optionContent, int topicCont) {
        this.topicid = topicid;
        this.topicContent = topicContent;
        this.optionContent = optionContent;
        this.topicCont = topicCont;
    }

    public Topic(Long topicid,String topicContent, String optionContent) {
        this.topicid = topicid;
        this.topicContent = topicContent;
        this.optionContent = optionContent;
    }

    public Topic(String topicContent, String optionContent) {
        this.topicContent = topicContent;
        this.optionContent = optionContent;
    }
}
